package world.ztomorrow.novel.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import world.ztomorrow.novel.dao.po.UserInfo;

import java.util.List;

@FeignClient("yc-user")
@Component
public interface UserClient {

    @PostMapping("/users")
    List<UserInfo> listUsersById(@RequestBody List<Long> userIds);
}
